<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>都市求职信息网</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
   
  <body>
    <center>
      <table width="684" border="0" cellspacing="0" cellpadding="0">
      	<tr>
      	  <td height="120" background="Images/logon_top.gif">&nbsp;o</td>
      	</tr>
      	<tr>
      	   <td height="292" background="Images/LoginBg.jpg"> 
      	      <table width="684" height="292" border="0" cellspacing="0" cellpadding="0" >
      	      	<tr>
      	      	  <td height="50">&nbsp;</td>
      	      	</tr>
      	      	<tr>
      	      	  <td align="center" valign="top">
      	      	    <form action="servlet/checkLogin" name="form1" method="post">
      	      	      <table width="100%" border="0" cellspacing="0" cellpadding="0">
      	      	        <tr>
      	      	      		<td width="10" colspan="2" align="center" style="padding-left:130px;">
      	      	      		   <a href="regist.jsp" style="color:red;">注册</a>
      	      	      		</td>
      	      	      	</tr>
      	      	      	<tr><td height="30"/> </tr>
      	      	      	
      	      	      	<tr>
      	      	      	  <td width="45% "height="30" align="right">用户名：</td>
      	      	      	  <td>
      	      	      	    <input type="text" name="username" size="15">
      	      	      	  </td>
      	      	      	</tr>
      	      	      	<tr><td height="30">&nbsp;</td></tr>
      	      	      	<tr>
      	      	      	  <td height="30" align="right">密码：</td>
      	      	      	  <td>
      	      	      	    <input type="password" name="password" size="15">
      	      	      	  </td>
      	      	      	</tr>
      	      	      	<tr><td height="20">&nbsp;</td></tr>
      	      	      	<tr> 
      	      	      	  <td colspan="2" align="center">
      	      	      	    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      	      	      	     	<tr>
      	      	      	     	  <td align="right">
      	      	      	     	  	<img src="Images/b_logon.gif" style="cursor:pointer" onclick="check()">
      	      	      	     	  </td>
      	      	      	     	   <td>
      	      	      	     	  	 <img src="Images/b_reset.gif" style="cursor:pointer" onclick="reset()">
      	      	      	     	  </td>
      	      	      	     	</tr>
      	      	      	    </table>
      	      	      	  </td>   	      	   
      	      	      	</tr>
      	      	      	<tr>
      	      	      		<td height="10"/>
      	      	      	</tr>
      	      	      	
      	      	      </table>
      	      	    </form>
      	      	  </td>
      	      	</tr>
      	      </table>
      	   </td>
      	</tr>
      </table>  
    </center>
  </body>
  
  <script language="javascript">
  	function check(){
  	    var name = form1.username.value;
  	    var pwd = form1.password.value;
  		if(name==""){
  			alert("请输入用户名!");
  			return;
  		}else if(pwd==""){
  			alert("请输入密码!");
  			return;
  		}
  		else{
  			form1.submit();
  		}
  	}
  	
  	function reset(){
  		form1.reset();
  	}
  </script>
</html>
